package com.cbank.constants;


public enum ResultCode {

	SUCCESS(200, "success")
	,ERROR(500, "服务器异常，请稍后重试！")
	,FORBIDDEN(900, "账号违规，已被 “官方客服” 禁用！")
	,ERROR_BALANCE(501, "余额不足,请进入个人中心充值")
	,ERROR_PASSWORD(502, "账号密码错误")
	,ERROR_QINIU(503, "文件上传错误")
	,ERROR_NOUSER(504, "没有该用户")
	,ERROR_APPLYING(505, "已在申请中")
	,ERROR_APPLYED(506, "已是导师")
	,ERROR_NOTAPPLYING(507, "没有在申请中")
	;
	
	private int code;
	private String msg; // B端展现文案

	private ResultCode(int code, String msg) {
		this.code = code;
		this.msg = msg;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

}
